"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from learn import views
# from learn.views import index_ti,index2, index,add, add3, add4, old_add2, scene_update_view
urlpatterns = [
    path('admin/', admin.site.urls),   # 后台
    path('', views.old_login),         # 首页
    path('login/', views.new_login, name='new_login'),    # 登录页
    path('login/login_check/',views.login_check),
    path('register/', views.register),    #注册页
    path('register/register_check/', views.register_check),
    path('index/',views.index, name='new_index'),         #主页
    path('index/loginout', views.loginout, name='loginout'),
    path('agentip/', views.agentip_index, name='agentip_index'),#代理ip首页
    path('agentip/test/', views.agentip_test, name='agentip_test'),
    path('Personal_Center/', views.Personal_Center_index, name='Personal_Center_index'), #个人主页
]
